package com.scut.online_black_market.service;


import com.scut.online_black_market.exception.VerifyCodeException;

/**
 * create by yellowBroke on 2020/11/2 11:15
 */
public interface MailService {

    /**
     * 发送邮件验证码
     * @param to
     */
    void sendMail(String to);

    /**
     * 邮箱验证
     * @param mail
     * @param validateCode
     * @return
     */
    void validateCode(String mail, String validateCode) throws VerifyCodeException;
}
